﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200103B RID: 4155
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournInfo : IMessage<RogueTournInfo>, IMessage, IEquatable<RogueTournInfo>, IDeepCloneable<RogueTournInfo>, IBufferMessage
	{
		// Token: 0x1700347A RID: 13434
		// (get) Token: 0x0600B9BC RID: 47548 RVA: 0x001F4A8C File Offset: 0x001F2C8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournInfo> Parser
		{
			get
			{
				return RogueTournInfo._parser;
			}
		}

		// Token: 0x1700347B RID: 13435
		// (get) Token: 0x0600B9BD RID: 47549 RVA: 0x001F4A93 File Offset: 0x001F2C93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700347C RID: 13436
		// (get) Token: 0x0600B9BE RID: 47550 RVA: 0x001F4AA5 File Offset: 0x001F2CA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournInfo.Descriptor;
			}
		}

		// Token: 0x0600B9BF RID: 47551 RVA: 0x001F4AAC File Offset: 0x001F2CAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournInfo()
		{
		}

		// Token: 0x0600B9C0 RID: 47552 RVA: 0x001F4AD8 File Offset: 0x001F2CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournInfo(RogueTournInfo other) : this()
		{
			this.rogueTournSaveList_ = other.rogueTournSaveList_.Clone();
			this.rogueTournAreaInfo_ = other.rogueTournAreaInfo_.Clone();
			this.rogueTournDifficultyInfo_ = other.rogueTournDifficultyInfo_.Clone();
			this.rogueSeasonInfo_ = ((other.rogueSeasonInfo_ != null) ? other.rogueSeasonInfo_.Clone() : null);
			this.rogueTournExpInfo_ = ((other.rogueTournExpInfo_ != null) ? other.rogueTournExpInfo_.Clone() : null);
			this.permanentInfo_ = ((other.permanentInfo_ != null) ? other.permanentInfo_.Clone() : null);
			this.extraScoreInfo_ = ((other.extraScoreInfo_ != null) ? other.extraScoreInfo_.Clone() : null);
			this.rogueTournHandbook_ = ((other.rogueTournHandbook_ != null) ? other.rogueTournHandbook_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B9C1 RID: 47553 RVA: 0x001F4BBB File Offset: 0x001F2DBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournInfo Clone()
		{
			return new RogueTournInfo(this);
		}

		// Token: 0x1700347D RID: 13437
		// (get) Token: 0x0600B9C2 RID: 47554 RVA: 0x001F4BC3 File Offset: 0x001F2DC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueTournSaveList> RogueTournSaveList
		{
			get
			{
				return this.rogueTournSaveList_;
			}
		}

		// Token: 0x1700347E RID: 13438
		// (get) Token: 0x0600B9C3 RID: 47555 RVA: 0x001F4BCB File Offset: 0x001F2DCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueTournAreaInfo> RogueTournAreaInfo
		{
			get
			{
				return this.rogueTournAreaInfo_;
			}
		}

		// Token: 0x1700347F RID: 13439
		// (get) Token: 0x0600B9C4 RID: 47556 RVA: 0x001F4BD3 File Offset: 0x001F2DD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueTournDifficultyInfo> RogueTournDifficultyInfo
		{
			get
			{
				return this.rogueTournDifficultyInfo_;
			}
		}

		// Token: 0x17003480 RID: 13440
		// (get) Token: 0x0600B9C5 RID: 47557 RVA: 0x001F4BDB File Offset: 0x001F2DDB
		// (set) Token: 0x0600B9C6 RID: 47558 RVA: 0x001F4BE3 File Offset: 0x001F2DE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournSeasonInfo RogueSeasonInfo
		{
			get
			{
				return this.rogueSeasonInfo_;
			}
			set
			{
				this.rogueSeasonInfo_ = value;
			}
		}

		// Token: 0x17003481 RID: 13441
		// (get) Token: 0x0600B9C7 RID: 47559 RVA: 0x001F4BEC File Offset: 0x001F2DEC
		// (set) Token: 0x0600B9C8 RID: 47560 RVA: 0x001F4BF4 File Offset: 0x001F2DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournExpInfo RogueTournExpInfo
		{
			get
			{
				return this.rogueTournExpInfo_;
			}
			set
			{
				this.rogueTournExpInfo_ = value;
			}
		}

		// Token: 0x17003482 RID: 13442
		// (get) Token: 0x0600B9C9 RID: 47561 RVA: 0x001F4BFD File Offset: 0x001F2DFD
		// (set) Token: 0x0600B9CA RID: 47562 RVA: 0x001F4C05 File Offset: 0x001F2E05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournPermanentTalentInfo PermanentInfo
		{
			get
			{
				return this.permanentInfo_;
			}
			set
			{
				this.permanentInfo_ = value;
			}
		}

		// Token: 0x17003483 RID: 13443
		// (get) Token: 0x0600B9CB RID: 47563 RVA: 0x001F4C0E File Offset: 0x001F2E0E
		// (set) Token: 0x0600B9CC RID: 47564 RVA: 0x001F4C16 File Offset: 0x001F2E16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExtraScoreInfo ExtraScoreInfo
		{
			get
			{
				return this.extraScoreInfo_;
			}
			set
			{
				this.extraScoreInfo_ = value;
			}
		}

		// Token: 0x17003484 RID: 13444
		// (get) Token: 0x0600B9CD RID: 47565 RVA: 0x001F4C1F File Offset: 0x001F2E1F
		// (set) Token: 0x0600B9CE RID: 47566 RVA: 0x001F4C27 File Offset: 0x001F2E27
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournHandbookInfo RogueTournHandbook
		{
			get
			{
				return this.rogueTournHandbook_;
			}
			set
			{
				this.rogueTournHandbook_ = value;
			}
		}

		// Token: 0x0600B9CF RID: 47567 RVA: 0x001F4C30 File Offset: 0x001F2E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournInfo);
		}

		// Token: 0x0600B9D0 RID: 47568 RVA: 0x001F4C40 File Offset: 0x001F2E40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournInfo other)
		{
			return other != null && (other == this || (this.rogueTournSaveList_.Equals(other.rogueTournSaveList_) && this.rogueTournAreaInfo_.Equals(other.rogueTournAreaInfo_) && this.rogueTournDifficultyInfo_.Equals(other.rogueTournDifficultyInfo_) && object.Equals(this.RogueSeasonInfo, other.RogueSeasonInfo) && object.Equals(this.RogueTournExpInfo, other.RogueTournExpInfo) && object.Equals(this.PermanentInfo, other.PermanentInfo) && object.Equals(this.ExtraScoreInfo, other.ExtraScoreInfo) && object.Equals(this.RogueTournHandbook, other.RogueTournHandbook) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B9D1 RID: 47569 RVA: 0x001F4D14 File Offset: 0x001F2F14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.rogueTournSaveList_.GetHashCode();
			num ^= this.rogueTournAreaInfo_.GetHashCode();
			num ^= this.rogueTournDifficultyInfo_.GetHashCode();
			if (this.rogueSeasonInfo_ != null)
			{
				num ^= this.RogueSeasonInfo.GetHashCode();
			}
			if (this.rogueTournExpInfo_ != null)
			{
				num ^= this.RogueTournExpInfo.GetHashCode();
			}
			if (this.permanentInfo_ != null)
			{
				num ^= this.PermanentInfo.GetHashCode();
			}
			if (this.extraScoreInfo_ != null)
			{
				num ^= this.ExtraScoreInfo.GetHashCode();
			}
			if (this.rogueTournHandbook_ != null)
			{
				num ^= this.RogueTournHandbook.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B9D2 RID: 47570 RVA: 0x001F4DD2 File Offset: 0x001F2FD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B9D3 RID: 47571 RVA: 0x001F4DDA File Offset: 0x001F2FDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B9D4 RID: 47572 RVA: 0x001F4DE4 File Offset: 0x001F2FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueTournExpInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.RogueTournExpInfo);
			}
			if (this.permanentInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.PermanentInfo);
			}
			this.rogueTournSaveList_.WriteTo(ref output, RogueTournInfo._repeated_rogueTournSaveList_codec);
			if (this.rogueSeasonInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.RogueSeasonInfo);
			}
			if (this.extraScoreInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.ExtraScoreInfo);
			}
			this.rogueTournDifficultyInfo_.WriteTo(ref output, RogueTournInfo._repeated_rogueTournDifficultyInfo_codec);
			this.rogueTournAreaInfo_.WriteTo(ref output, RogueTournInfo._repeated_rogueTournAreaInfo_codec);
			if (this.rogueTournHandbook_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.RogueTournHandbook);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B9D5 RID: 47573 RVA: 0x001F4EC4 File Offset: 0x001F30C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.rogueTournSaveList_.CalculateSize(RogueTournInfo._repeated_rogueTournSaveList_codec);
			num += this.rogueTournAreaInfo_.CalculateSize(RogueTournInfo._repeated_rogueTournAreaInfo_codec);
			num += this.rogueTournDifficultyInfo_.CalculateSize(RogueTournInfo._repeated_rogueTournDifficultyInfo_codec);
			if (this.rogueSeasonInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueSeasonInfo);
			}
			if (this.rogueTournExpInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournExpInfo);
			}
			if (this.permanentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PermanentInfo);
			}
			if (this.extraScoreInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ExtraScoreInfo);
			}
			if (this.rogueTournHandbook_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournHandbook);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B9D6 RID: 47574 RVA: 0x001F4F9C File Offset: 0x001F319C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.rogueTournSaveList_.Add(other.rogueTournSaveList_);
			this.rogueTournAreaInfo_.Add(other.rogueTournAreaInfo_);
			this.rogueTournDifficultyInfo_.Add(other.rogueTournDifficultyInfo_);
			if (other.rogueSeasonInfo_ != null)
			{
				if (this.rogueSeasonInfo_ == null)
				{
					this.RogueSeasonInfo = new RogueTournSeasonInfo();
				}
				this.RogueSeasonInfo.MergeFrom(other.RogueSeasonInfo);
			}
			if (other.rogueTournExpInfo_ != null)
			{
				if (this.rogueTournExpInfo_ == null)
				{
					this.RogueTournExpInfo = new RogueTournExpInfo();
				}
				this.RogueTournExpInfo.MergeFrom(other.RogueTournExpInfo);
			}
			if (other.permanentInfo_ != null)
			{
				if (this.permanentInfo_ == null)
				{
					this.PermanentInfo = new RogueTournPermanentTalentInfo();
				}
				this.PermanentInfo.MergeFrom(other.PermanentInfo);
			}
			if (other.extraScoreInfo_ != null)
			{
				if (this.extraScoreInfo_ == null)
				{
					this.ExtraScoreInfo = new ExtraScoreInfo();
				}
				this.ExtraScoreInfo.MergeFrom(other.ExtraScoreInfo);
			}
			if (other.rogueTournHandbook_ != null)
			{
				if (this.rogueTournHandbook_ == null)
				{
					this.RogueTournHandbook = new RogueTournHandbookInfo();
				}
				this.RogueTournHandbook.MergeFrom(other.RogueTournHandbook);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B9D7 RID: 47575 RVA: 0x001F50D3 File Offset: 0x001F32D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B9D8 RID: 47576 RVA: 0x001F50DC File Offset: 0x001F32DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num <= 18U)
					{
						if (num == 10U)
						{
							if (this.rogueTournExpInfo_ == null)
							{
								this.RogueTournExpInfo = new RogueTournExpInfo();
							}
							input.ReadMessage(this.RogueTournExpInfo);
							continue;
						}
						if (num == 18U)
						{
							if (this.permanentInfo_ == null)
							{
								this.PermanentInfo = new RogueTournPermanentTalentInfo();
							}
							input.ReadMessage(this.PermanentInfo);
							continue;
						}
					}
					else
					{
						if (num == 26U)
						{
							this.rogueTournSaveList_.AddEntriesFrom(ref input, RogueTournInfo._repeated_rogueTournSaveList_codec);
							continue;
						}
						if (num == 34U)
						{
							if (this.rogueSeasonInfo_ == null)
							{
								this.RogueSeasonInfo = new RogueTournSeasonInfo();
							}
							input.ReadMessage(this.RogueSeasonInfo);
							continue;
						}
					}
				}
				else if (num <= 66U)
				{
					if (num == 50U)
					{
						if (this.extraScoreInfo_ == null)
						{
							this.ExtraScoreInfo = new ExtraScoreInfo();
						}
						input.ReadMessage(this.ExtraScoreInfo);
						continue;
					}
					if (num == 66U)
					{
						this.rogueTournDifficultyInfo_.AddEntriesFrom(ref input, RogueTournInfo._repeated_rogueTournDifficultyInfo_codec);
						continue;
					}
				}
				else
				{
					if (num == 98U)
					{
						this.rogueTournAreaInfo_.AddEntriesFrom(ref input, RogueTournInfo._repeated_rogueTournAreaInfo_codec);
						continue;
					}
					if (num == 114U)
					{
						if (this.rogueTournHandbook_ == null)
						{
							this.RogueTournHandbook = new RogueTournHandbookInfo();
						}
						input.ReadMessage(this.RogueTournHandbook);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004AD7 RID: 19159
		private static readonly MessageParser<RogueTournInfo> _parser = new MessageParser<RogueTournInfo>(() => new RogueTournInfo());

		// Token: 0x04004AD8 RID: 19160
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004AD9 RID: 19161
		public const int RogueTournSaveListFieldNumber = 3;

		// Token: 0x04004ADA RID: 19162
		private static readonly FieldCodec<RogueTournSaveList> _repeated_rogueTournSaveList_codec = FieldCodec.ForMessage<RogueTournSaveList>(26U, EggLink.DanhengServer.Proto.RogueTournSaveList.Parser);

		// Token: 0x04004ADB RID: 19163
		private readonly RepeatedField<RogueTournSaveList> rogueTournSaveList_ = new RepeatedField<RogueTournSaveList>();

		// Token: 0x04004ADC RID: 19164
		public const int RogueTournAreaInfoFieldNumber = 12;

		// Token: 0x04004ADD RID: 19165
		private static readonly FieldCodec<RogueTournAreaInfo> _repeated_rogueTournAreaInfo_codec = FieldCodec.ForMessage<RogueTournAreaInfo>(98U, EggLink.DanhengServer.Proto.RogueTournAreaInfo.Parser);

		// Token: 0x04004ADE RID: 19166
		private readonly RepeatedField<RogueTournAreaInfo> rogueTournAreaInfo_ = new RepeatedField<RogueTournAreaInfo>();

		// Token: 0x04004ADF RID: 19167
		public const int RogueTournDifficultyInfoFieldNumber = 8;

		// Token: 0x04004AE0 RID: 19168
		private static readonly FieldCodec<RogueTournDifficultyInfo> _repeated_rogueTournDifficultyInfo_codec = FieldCodec.ForMessage<RogueTournDifficultyInfo>(66U, EggLink.DanhengServer.Proto.RogueTournDifficultyInfo.Parser);

		// Token: 0x04004AE1 RID: 19169
		private readonly RepeatedField<RogueTournDifficultyInfo> rogueTournDifficultyInfo_ = new RepeatedField<RogueTournDifficultyInfo>();

		// Token: 0x04004AE2 RID: 19170
		public const int RogueSeasonInfoFieldNumber = 4;

		// Token: 0x04004AE3 RID: 19171
		private RogueTournSeasonInfo rogueSeasonInfo_;

		// Token: 0x04004AE4 RID: 19172
		public const int RogueTournExpInfoFieldNumber = 1;

		// Token: 0x04004AE5 RID: 19173
		private RogueTournExpInfo rogueTournExpInfo_;

		// Token: 0x04004AE6 RID: 19174
		public const int PermanentInfoFieldNumber = 2;

		// Token: 0x04004AE7 RID: 19175
		private RogueTournPermanentTalentInfo permanentInfo_;

		// Token: 0x04004AE8 RID: 19176
		public const int ExtraScoreInfoFieldNumber = 6;

		// Token: 0x04004AE9 RID: 19177
		private ExtraScoreInfo extraScoreInfo_;

		// Token: 0x04004AEA RID: 19178
		public const int RogueTournHandbookFieldNumber = 14;

		// Token: 0x04004AEB RID: 19179
		private RogueTournHandbookInfo rogueTournHandbook_;
	}
}
